﻿// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "SElementUISlate.h"

class ELEMENTUISLATE_API SElementUIMessage : public SElementUISlate
{
public:
	SLATE_BEGIN_ARGS(SElementUIMessage)
	:_Content()
	{}
	SLATE_DEFAULT_SLOT(FArguments, Content)

    SLATE_END_ARGS()

    //外部执行SNew或者SAssignNew时候会调用Construct()
    void Construct(const FArguments& InArgs);

	virtual void ShowMessage();
	virtual void HideMessage();

	virtual void SetContentPadding(const FMargin& value);
	virtual void SetHAlign(EHorizontalAlignment value);
	virtual void SetVAlign(EVerticalAlignment value);
	virtual void SetContent(TSharedRef<SWidget> InContent);

	FLinearColor SlateColorChanged();
private:
	TSharedPtr<SBorder> BorderBox;
	//Slate动画对象
	FCurveSequence MySlateCurveSequence;
};
